<!DOCTYPE html>
<!-- ng-app -->
<html lang="en" ng-app="app">
<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="../../../js/plugins/angular/angular.min.js" type="text/javascript"></script>
</head>
<body>
    <form name="temp_form" ng-submit="save()" ng-controller="cont">
        <div>
            <input type="checkbox" ng-model="agreed" ng-true-value="同意" ng-false-value="不同意">
            同意
        </div>
        <div>
            性别：
            <input type="radio" ng-model="sex" value="男">男
            <input type="radio" ng-model="sex" value="女">女
        </div>
        <input type="submit" value="提交">
        <div>{{result}}</div>
    </form>

    <script>
        var app = angular.module('app',[]);
        app.controller('cont',['$scope',function ($scope) {
            $scope.agreed = "同意";
            $scope.sex = "男";
            $scope.save = function () {
                $scope.result = "您选择的是:" + $scope.agreed + "和" + $scope.sex;
            }
        }])

    </script>
</body>
</html>